﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Workflow.Entity
{
    public class ProcessCategoryEntity:IComparable
    {
        string _categoryID=Guid.NewGuid().ToString();
        public string CATEGORYID
        {
            get
            {
                return _categoryID;
            }
            set
            {
                _categoryID = value;
            }
        }

        string _categoryName;

        public string CATEGORYNAME
        {
            get { return _categoryName.Trim(); }
            set { _categoryName = value; }
        }


        string _icon;

        public string ICON
        {
            get { return _icon; }
            set { _icon = value; }
        }

        public int CompareTo(object obj)
        {
            ProcessCategoryEntity ety = obj as ProcessCategoryEntity;
            return this.CATEGORYNAME.CompareTo(ety.CATEGORYNAME);
        }
    }
}
